// fourierSerial.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"


int main(int argc, char* argv[])
{
	material	substance[NUM_MATERIAL];
	die2D		die[NUM_DIE];
	plate2D		plate;
	double		dx;
	double		airThick;

	MPI_Init(&argc,&argv);	
	int			nodeIndex;
	MPI_Comm_rank(MPI_COMM_WORLD, &nodeIndex);


	input2D(substance, die, &plate, &airThick, &dx);

	double totalTime = fourierMPI2D(argc, argv, substance, die, plate, airThick, dx);

	fprintf(stdout, "THE END @ NODE - %d\n", nodeIndex);
	fflush(stdout);

	//if (nodeIndex == 0) getchar();

	MPI_Finalize();

	return 0;
}

